package com.kevin.es.repository;

import com.kevin.es.user.User;
import org.springframework.data.elasticsearch.core.event.AfterSaveCallback;
import org.springframework.data.elasticsearch.core.mapping.IndexCoordinates;
import org.springframework.stereotype.Component;

/**
 * @author Kevin Liu
 * @date 2020/10/18 5:30 下午
 */
@Component
public class DefaultCallBack implements AfterSaveCallback<User> {


    @Override
    public User onAfterSave(User entity, IndexCoordinates index) {
        return entity;
    }
}
